/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mvc.empleo;

import com.beans.OfertaBean;
import com.gestores.GestionOfertas;
import com.mvc.RequestHandler;
import java.io.IOException;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author victor
 */
public class ConsultarOferta implements RequestHandler{

    public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, NamingException {
        String idOferta = (String) request.getParameter("idOferta");
        String historica = (String) request.getParameter("historica");
                
        OfertaBean oferta=GestionOfertas.getInstance().consultaOferta(idOferta);
        
        request.setAttribute("oferta", oferta);
        request.setAttribute("historica", historica);
        
        
        
    }
    

}
